<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', 'IndexController@index');

//跳转到展示页面和登录
// Route::get('auth/login','Auth/AuthCongroller@getLogin');
Route::get('vote','IndexController@vote');


//后台添加界面
//Route::get('add','UserController@add');
Route::match(['get','post'],'add','UserController@add');

//添加完跳转到预览
Route::get('prev','UserController@prev');

